import Mock from 'mockjs';


export default {
    className: "Upgrade.Model.UserUpgrade",
    queryData: function(postData) {
        return Mock.mock({
            isSuccess: "Y",
            reason: "",
            message: [],
            "data": {
                "recordCount": 38,
                "pageCount": 1,
                "pageIndex": 1,
                "pageSize": 20,
                "queryResult|38": [{
                    "keyID|1000-9999": 1000,
                    "deviceCode": /^[0-9][0-9][0-9][0-9][0-9]$/,
                    "appName": Mock.mock('@ctitle'),
                    "versionCode": /^[0-9][0-9][0-9][0-9][0-9]$/,
                    "site": "豫南",
                    "genre": "选择升级",
                    "genreVal": "Choose",
                    "version": 1,
                }]
            }
        });
    },
    queryByKeyID: function(postData) {
        return Mock.mock({
            isSuccess: "Y",
            reason: "",
            message: [],
            "data": {
                "keyID|1000-9999": 1000,
                "deviceCode": /^[0-9][0-9][0-9][0-9][0-9]$/,
                "appName": Mock.mock('@ctitle'),
                "versionCode": /^[0-9][0-9][0-9][0-9][0-9]$/,
                "site": "豫南",
                "genre": "选择升级",
                "genreVal": "Choose",
                "version": 1,

            }
        });
    },
};
